package com.vue.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 基础数据表
 * </p>
 *
 * @author wangruijie
 * @since 2024-08-04
 */
@Data
@TableName("dict_data")
@EqualsAndHashCode(callSuper = false)
public class DictDataEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 基础数据类型
     */
    private String dictType;

    /**
     * key值
     */
    private String dictKey;

    /**
     * value值
     */
    private String dictValue;

    /**
     * 备注
     */
    private String remark;
}
